<?php

namespace app\api\Validate;

use think\Validate;

/**
 * 教育经历
 */
class EducationValidate extends Validate
{
    protected $rule = [
        'id' => 'require',
        'education' => 'require',
        'name' => 'require',
        'specialty' => 'require',
        'educationdate' => 'require',

    ];
    protected $message = [
        'education.require'  => '学历不能为空',
        'name.require'  => '学校名称不能为空',
        'specialty.require'  => '专业不能为空',
        'educationdate.require'  => '在校时间不能为空',
        'id.require'  => '信息为找到',


    ];
    protected $scene = [
        'add' => [
            'education',
            'name',
            'specialty',
            'educationdate',

        ],
        'save' => [
            'id',
            'education',
            'name',
            'specialty',
            'educationdate',
        ],
    ];
}